<template>
    <slot name="rows">
        <tr v-for="item in productlist">
            <td>{{item.id}}</td>
            <td>{{item.name}}</td>
            <td>{{item.price}}</td>
            <td><button>删除</button><button>修改</button></td>
        </tr>
    </slot>
</template>

<script>
export default {
    props:["productlist"]
}
</script>

<style lang="scss" scoped>

</style>